-- GENERATED SPELL FOR [Scarlet Captain] --


function spell0_28611(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(52221,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28611', 632, 1)
end

function spell1_28611(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28611', 578, 1)
end

function Sorts_28611(pUnit, Event)
local choix_sorts_28611 = math.random(0, 1)
if choix_sorts_28611 == 0 then
pUnit:RegisterEvent('spell0_28611', 1, 1)
end
if choix_sorts_28611 == 1 then
pUnit:RegisterEvent('spell1_28611', 1, 1)
end
end

function mob28611_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28611', math.random(1500, 3000), 1)
end

function mob28611_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28611_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28611_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28611, 1, 'mob28611_Action')
RegisterUnitEvent(28611, 2, 'mob28611_Leave')
RegisterUnitEvent(28611, 3, 'mob28611_Kill')
RegisterUnitEvent(28611, 4, 'mob28611_Die')
